/* 跳转路由方法 */
import router from './index'

/**
 * 跳转主页
 */
export const pushHome = (params = {}) => {
  router.push({ name: 'Home', params })
}
export const replaceHome = (params = {}) => {
  router.replace({ name: 'Home', params })
}

/**
 * 跳转专利查询页
 */
export const pushSearch = (params = {}) => {
  router.push({ name: 'Search', params })
}
export const replaceSearch = (params = {}) => {
  router.replace({ name: 'Search', params })
}

/**
 * 跳转专利预测
 */
export const pushForecast = (params = {}) => {
  router.push({ name: 'Forecast', params })
}
export const replaceForecast = (params = {}) => {
  router.replace({ name: 'Forecast', params })
}
